﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.Xml;
namespace WXFramework.Model
{
    /// <summary>
    /// 回复文本消息,企业号和公众号的回复格式不同
    /// </summary>
    [XmlRoot("xml")]
    public class ResponseTextMessage : ResponseMessage
    {
        public ResponseTextMessage() 
        {
           
        }

        public ResponseTextMessage(RequestMessage reqmsg):base(reqmsg)
        {

        }
       
        public override MsgType MsgType
        {
            get { return Model.MsgType.Text; }
        }

        [XmlIgnore]
        public string Content
        {
            get;
            set;
        }

        [XmlElement("Content")]
        public XmlCDataSection CContent 
        {
            get
            {
                return doc.CreateCDataSection(Content);
            }
            set
            {
                Content = value.Value;
            }
        }

    }
}



